/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

import Controle.Animal;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.RequestScoped;

/**
 *
 * @author Carol
 */
@ManagedBean
@RequestScoped
public class ControladorJSFAnimal {
    
    private Animal animal;

    public Animal getAnimal() {
        return animal;
    }

    public void setAnimal(Animal animal) {
        this.animal = animal;
    }

    /** Creates a new instance of ControladorJSFAnimal */
    public ControladorJSFAnimal() {
        animal = new Animal();
        
    }
    
    public String imprimeDados(){
        System.out.println(animal.getNumeracao());
        System.out.println(animal.getNascimento());
        System.out.println(animal.getComentario());
        System.out.println(animal.getSexo());
        return "controleAnimal.xhtml";
    }
}
